package com.zwr.sheller.core.util;

/**
 * @Author LSY
 * @Date 2021/12/24 17:04
 * @Version 1.0
 **/
public class ThreadLocalUtil {

    private static final ThreadLocal<Object> threadLocal = new ThreadLocal<>();

    public static Object getObject() {
        return threadLocal.get();
    }

    public static void setObject(Object object) {
        threadLocal.set(object);
    }

    public static void remove() {
        threadLocal.remove();
    }
}
